<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var obj = {
            name: 'nick',
            age: 18,
            sex: 'boy',
            heigth: '180cm',
            weight: '130',
            fun: function() {
                console.log('大家号，我叫' + this.name + ',年龄' + this.age + ',性别' + this.sex + ',身高' + this.heigth +
                    ',体重' + this.weight + '斤，很高兴认识大家')
            }

        }
        console.log(obj.fun())
    </script>
</body>

</html>